package com.qianfeng.ssm.pojo;

import lombok.ToString;
import org.springframework.util.StringUtils;

import java.util.Date;

@ToString
public class Person implements ChickNull{

  private long id;
  private String name;
  private long age;
  private Date birth;
  private String gender;
  private String address;

  @Override
  public boolean isEmpty() {
    return !StringUtils.hasText(name);
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Date getBirth() {
    return birth;
  }

  public void setBirth(Date birth) {
    this.birth = birth;
  }

  public long getAge() {
    return age;
  }

  public void setAge(long age) {
    this.age = age;
  }


  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

}
